﻿namespace JavaScript8000.Parser
{
    using System.Collections.Generic;

    /// <summary>
    /// Represent error occurs in rule checking.
    /// </summary>
    public class RuleZoneError
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="RuleZoneError"/> class.
        /// </summary>
        public RuleZoneError()
        {
            this.Children = new List<GrammarNode>();
        }

        /// <summary>
        /// Gets the children.
        /// </summary>
        public List<GrammarNode> Children { get; private set; }

        /// <summary>
        /// Gets or sets the checked token number.
        /// </summary>
        /// <value>
        /// The checked token number.
        /// </value>
        public int CheckedTokenNumber { get; set; }

        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        /// <value>
        /// The message.
        /// </value>
        public string Message { get; set; }
    }
}
